package ru.bytedog.oiot.counter.bot.dto.dashboard;

import lombok.Data;
import ru.bytedog.oiot.counter.bot.exception.ServiceException;

@Data
public class ApiErrorResponse {
    private int errorCode;
    private String message;

    public ApiErrorResponse(ServiceException exception) {
        errorCode = exception.getErrorInfo().getCode();
        message = exception.getMessage();
    }
}
